package com.bestcem.xm.ticket.service.manager.notify.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.bestcem.xm.ticket.grpc.client.enums.survey.CustomTypeEnum;
import lombok.Data;

/**
 * 答卷答案解析DTO
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/11/25 20:45
 */
@Data
public class RespondentAnswerDTO {

    /**
     * @see CustomTypeEnum
     */
    @JSONField(name = "custom_qtype")
    private String customType;

    @JSONField(name = "gid")
    private String gid;

    @JSONField(name = "_index")
    private String index;

    /**
     * JSONArray: 剩下其他的
     * JSONObject:  EVALUATION | INFO_DATE | INFO_GEOGRAPHY
     * Integer: INFO_TIME
     * 未知: DESCRIPTOR
     */
    @JSONField(name = "answer")
    private String answer;

    @JSONField(name = "qtype")
    private String type;

    @JSONField(name = "title")
    private String title;

    @JSONField(name = "cid")
    private String cid;

    /**
     * EVALUATION
     */
    @JSONField(name = "current_template")
    private String currentTemplate;

    @JSONField(name = "undisplay")
    private String unDisplay;
}
